<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path;
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="js/jquery-1.8.0.js"></script>
<script type="text/javascript" src="js/layer.js"></script>
<title>修改店铺</title>
<script type="text/javascript">
	function starChange() {
		var star1 = document.getElementById("star1").value;
		var star2 = document.getElementById("star2").value;
		var end1 = document.getElementById("end1").value;
		var end2 = document.getElementById("end2").value;

	}
</script>
<link rel="stylesheet" href="css/tableCss.css" type="text/css" />
</head>
<body>
	<br />
	<br />
	<s:form action="editShop" method="post" enctype="multipart/form-data">
		<table id="model_t" align="center">
			<tr style="height: 10px;">
				<td id="tth" colspan="2"><p id="thp">&nbsp;&nbsp;编辑店铺</p></td>
			</tr>

			<tr>
				<td><p id="tdp">店名：</p></td>
				<td><p id="tdp">
						<input type="text" name="shop.shopName" value="${shop.shopName }">
					</p> <input type="hidden" name="shop.id" value="${shop.id}"> <input
					type="hidden" name="shop.aid" value="${shop.aid}"> <input
					type="hidden" name="shop.isvalid" value="${shop.isvalid}">
					<input type="hidden" name="shop.moneyTotal"
					value="${shop.moneyTotal}"> <input type="hidden"
					name="shop.univId" value="${shop.univId}"> <input
					type="hidden" name="shop.provinceId" value="${shop.provinceId}">
					<input type="hidden" name="shop.shopPicture" value="${shop.shopPicture}">
			</tr>
			<tr>
				<td><p id="tdp">店家图片</p></td>
				<td><img id="img" src="<%=basePath%>${shop.shopPicture}"></img></td>
				<td><s:file name="spicture" /> <s:fielderror
						fieldName="spicture"></s:fielderror></td>
			</tr>
			<tr>
				<td><p id="tdp">订餐电话：</p></td>
				<td><p id="tdp">
						<input type="text" name="shop.phone" value="${shop.phone }">
					</p></td>
			</tr>
			<tr>
				<td><p id="tdp">营业时间：</p></td>

				<td><p id="tdp">
						<input type="text" id="star1" name="star1" onblur="starChange();"
							style="width: 30px;">:<input type="text" name="star2"
							id="star2" onblur="starChange();" style="width: 30px">-<input
							type="text" name="end1" id="end1" onblur="starChange();"
							style="width: 30px">:<input type="text" name="end2"
							id="end2" onblur="starChange();" style="width: 30px">
					</p></td>
			</tr>
			<tr>
				<td><p id="tdp">位置：</p></td>
				<td><p id="tdp">
						<input type="text" name="shop.place" value="${shop.place }">
					</p></td>
			</tr>
			<tr>
				<td><p id="tdp">评价：</p></td>
				<td><p id="tdp">
						<input type="text" name="shop.evaluate" value="${shop.evaluate}">
					</p></td>
			</tr>
			<tr>
				<td><p id="tdp">是否为推荐店铺</p></td>

				<td><p id="tdp">
						<s:if test="shop.recommend == 1">
							<input type="radio" name="shop.recommend" value="1"
								checked="checked" />推荐 
					    <input type="radio" name="shop.recommend" value="0" />不推荐
				    </s:if>
						<s:else>
							<input type="radio" name="shop.recommend" value="1" />推荐 
					    <input type="radio" name="shop.recommend" value="0"
								checked="checked" />不推荐
					 </s:else>
					</p></td>
			</tr>
			<tr>
				<td colspan="2"><p id="ptd">
						<input type="submit" value="提交"> <a href="queryShopInfo">返回</a>
					</p></td>
				<td></td>
			</tr>
		</table>
	</s:form>
</body>
</html>